import 'package:flutter/material.dart';
class DashedLine extends StatelessWidget {
  final Axis axis;
  final double dashedwidth;
  final double dashedheight;
  final int count;
  final Color color;


  const DashedLine({
    required this.axis,
    this.dashedwidth=1,
    this.dashedheight=1,
    this.count=10,
    this.color=Colors.black54
  });

  @override
  Widget build(BuildContext context) {
    print(dashedwidth);
    print(dashedheight);
    print(count);
    return Flex(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      direction: axis,
      children: List.generate(count, (_){
        return SizedBox(
          width: dashedwidth,
          height: dashedheight,
          child: DecoratedBox(
            decoration: BoxDecoration(color: color),
          ),
        );
      }),

    );
  }
}